package com.bnlr.lrparking.model;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * TODO<json数据源>
 *
 * @author: 小嵩
 * @date: 2017/3/16 15:36
 */

public class JsonBean implements IPickerViewData {


    /**
     * name : 省份
     * city : [{"name":"北京市","area":["东城区","西城区","崇文区","宣武区","朝阳区"]}]
     */

    private String Name;
    private List<CityBean> Cities;
    private int Id;

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public List<CityBean> getCities() {
        return Cities;
    }

    public void setCities(List<CityBean> cities) {
        Cities = cities;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    // 实现 IPickerViewData 接口，
    // 这个用来显示在PickerView上面的字符串，
    // PickerView会通过IPickerViewData获取getPickerViewText方法显示出来。
    @Override
    public String getPickerViewText() {
        return this.Name;
    }

    public static class CityBean {
        /**
         * name : 城市
         * area : ["东城区","西城区","崇文区","昌平区"]
         */

        private String Name;
        private int Id;
        private List<CityArea> Areas;
        public static class CityArea {
            private String Name;
            private int Id;

            public String getName() {
                return Name;
            }

            public void setName(String name) {
                Name = name;
            }

            public int getId() {
                return Id;
            }

            public void setId(int id) {
                Id = id;
            }
        }

        public String getName() {
            return Name;
        }

        public void setName(String name) {
            Name = name;
        }

        public int getId() {
            return Id;
        }

        public void setId(int id) {
            Id = id;
        }

        public List<CityArea> getAreas() {
            return Areas;
        }

        public void setAreas(List<CityArea> areas) {
            Areas = areas;
        }
    }
}
